how to solve a compound inequality